// Lean compiler output
// Module: Lean.Util.Diff
// Imports: public import Init.Data.Array.Subarray.Split public import Init.Data.Slice.Array.Iterator public import Init.Data.Range public import Std.Data.HashMap.Basic import Init.Data.Iterators.Combinators.ULift public import Init.Data.String.Basic
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
LEAN_EXPORT lean_object* l_Lean_Diff_Action_toCtorIdx___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg___lam__0(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_lcs___redArg___closed__9;
LEAN_EXPORT lean_object* l___private_Lean_Util_Diff_0__Lean_Diff_matchPrefix_go___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_matchPrefix___redArg___closed__0;
static lean_object* l_Lean_Diff_instBEqAction___closed__0;
LEAN_EXPORT lean_object* l_Lean_Diff_matchSuffix(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lean_Diff_instInhabitedAction_default;
LEAN_EXPORT lean_object* l_Lean_Diff_matchPrefix___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_insert_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Histogram_addLeft___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_instToStringAction___lam__0___closed__2;
LEAN_EXPORT lean_object* l_Lean_Diff_instHashableAction;
LEAN_EXPORT lean_object* l_Lean_Diff_Action_delete_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Nat_decLt___boxed(lean_object*, lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_ctorElim___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_skip_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_array(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_linesToString___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_Action_linePrefix___closed__2;
static lean_object* l_Lean_Diff_instReprAction_repr___closed__2;
LEAN_EXPORT lean_object* l_Lean_Diff_instToStringAction___lam__0(uint8_t);
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__1(lean_object*);
static lean_object* l_Lean_Diff_diff___redArg___closed__0;
static lean_object* l_Lean_Diff_instReprAction_repr___closed__1;
lean_object* lean_array_fget_borrowed(lean_object*, lean_object*);
static lean_object* l_Lean_Diff_instToStringAction___lam__0___closed__1;
LEAN_EXPORT uint64_t l_Lean_Diff_instHashableAction_hash(uint8_t);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_skip_elim___redArg___boxed(lean_object*);
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_ctorElim___redArg(lean_object*);
lean_object* l_Id_instMonad___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_instToStringAction___lam__0___closed__0;
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__6(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_delete_elim(lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_instReprAction_repr___closed__3;
size_t lean_usize_of_nat(lean_object*);
static lean_object* l_Lean_Diff_instReprAction_repr___closed__5;
lean_object* l_Std_DHashMap_Internal_AssocList_foldrM___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_Rxo_Iterator_instIteratorLoop_loop___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_ctorIdx(uint8_t);
static lean_object* l_Lean_Diff_diff___redArg___closed__2;
LEAN_EXPORT lean_object* l_Lean_Diff_linesToString(lean_object*, lean_object*, lean_object*);
lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
lean_object* l_Std_DHashMap_Internal_Raw_u2080_insert___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_noConfusion(lean_object*, uint8_t, uint8_t, lean_object*);
static lean_object* l_Lean_Diff_lcs___redArg___closed__6;
LEAN_EXPORT lean_object* l_Lean_Diff_Action_noConfusion___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_to_int(lean_object*);
static lean_object* l_Lean_Diff_lcs___redArg___closed__13;
LEAN_EXPORT lean_object* l_Lean_Diff_Action_insert_elim___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lean_Diff_instInhabitedAction;
lean_object* l_Id_instMonad___lam__2___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_delete_elim___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Histogram_addRight___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_Action_linePrefix___closed__0;
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_linesToString___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_instReprAction_repr___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_ctorElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_lcs___redArg___closed__0;
lean_object* l_Array_ofSubarray___redArg(lean_object*);
lean_object* l_List_forIn_x27_loop___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_instHashableAction___closed__0;
lean_object* l_Subarray_get___redArg(lean_object*, lean_object*);
lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Subarray_drop___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Diff_lcs___redArg___closed__4;
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg___lam__1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_lcs___redArg___closed__2;
LEAN_EXPORT lean_object* l_Lean_Diff_Action_noConfusion___redArg(uint8_t, uint8_t);
lean_object* l_Subarray_take___redArg(lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__3(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_linePrefix(uint8_t);
lean_object* l_Subarray_split___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_instReprAction_repr(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Util_Diff_0__Lean_Diff_matchPrefix_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_instReprAction_repr___closed__0;
lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_instHashableAction_hash___boxed(lean_object*);
LEAN_EXPORT uint8_t l_Lean_Diff_instBEqAction_beq(uint8_t, uint8_t);
LEAN_EXPORT lean_object* l_Lean_Diff_instToStringAction;
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Util_Diff_0__Lean_Diff_matchSuffix_go___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_linesToString___redArg___closed__0;
lean_object* lean_array_get_borrowed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__5(lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Std_PRange_instUpwardEnumerableNat;
LEAN_EXPORT lean_object* l_Lean_Diff_instToStringAction___lam__0___boxed(lean_object*);
static lean_object* l_Lean_Diff_instReprAction_repr___closed__4;
static lean_object* l_Lean_Diff_lcs___redArg___closed__12;
LEAN_EXPORT lean_object* l_Lean_Diff_Action_skip_elim(lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_lcs___redArg___closed__8;
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
static lean_object* l_Lean_Diff_instReprAction___closed__0;
LEAN_EXPORT lean_object* l_Lean_Diff_Action_noConfusion___redArg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Histogram_addRight___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_lcs___redArg___closed__7;
LEAN_EXPORT lean_object* l_Lean_Diff_instReprAction;
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
static lean_object* l_Lean_Diff_lcs___redArg___closed__10;
static lean_object* l_Lean_Diff_linesToString___redArg___lam__0___closed__0;
LEAN_EXPORT lean_object* l_Lean_Diff_linesToString___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_lcs___redArg___closed__1;
LEAN_EXPORT lean_object* l_Lean_Diff_Action_ctorIdx___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_Action_linePrefix___closed__1;
static lean_object* l_Lean_Diff_diff___redArg___closed__1;
LEAN_EXPORT lean_object* l_Lean_Diff_instBEqAction_beq___boxed(lean_object*, lean_object*);
lean_object* l_Repr_addAppParen(lean_object*, lean_object*);
lean_object* l_Array_toSubarray___redArg(lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_sub(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_instBEqAction;
lean_object* l_Array_append___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_insert_elim(lean_object*, uint8_t, lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__6(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_lcs___redArg___closed__3;
lean_object* l_Subarray_size___redArg(lean_object*);
static lean_object* l_Lean_Diff_lcs___redArg___closed__11;
LEAN_EXPORT lean_object* l_Lean_Diff_matchSuffix___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_instReprAction_repr___closed__6;
static lean_object* l_Lean_Diff_instReprAction_repr___closed__7;
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_noConfusion___redArg___lam__0___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_matchPrefix(lean_object*, lean_object*, lean_object*, lean_object*);
size_t lean_array_size(lean_object*);
lean_object* l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
lean_object* lean_string_append(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Histogram_addLeft(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_get_size(lean_object*);
lean_object* l_Id_instMonad___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_lcs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_add(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_delete_elim___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Util_Diff_0__Lean_Diff_matchSuffix_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Histogram_addLeft___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Diff_lcs___redArg___closed__5;
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_skip_elim___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_noConfusion___redArg___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_toCtorIdx(uint8_t);
LEAN_EXPORT lean_object* l_Lean_Diff_diff(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_insert_elim___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Histogram_addRight(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_ctorElim(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_linePrefix___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Diff_Action_ctorIdx(uint8_t x_1) {
_start:
{
switch (x_1) {
case 0:
{
lean_object* x_2; 
x_2 = lean_unsigned_to_nat(0u);
return x_2;
}
case 1:
{
lean_object* x_3; 
x_3 = lean_unsigned_to_nat(1u);
return x_3;
}
default: 
{
lean_object* x_4; 
x_4 = lean_unsigned_to_nat(2u);
return x_4;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_ctorIdx___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
x_3 = l_Lean_Diff_Action_ctorIdx(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_toCtorIdx(uint8_t x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Diff_Action_ctorIdx(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_toCtorIdx___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
x_3 = l_Lean_Diff_Action_toCtorIdx(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_ctorElim(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_inc(x_5);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_ctorElim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_ctorElim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = lean_unbox(x_3);
x_7 = l_Lean_Diff_Action_ctorElim(x_1, x_2, x_6, x_4, x_5);
lean_dec(x_5);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_ctorElim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Diff_Action_ctorElim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_insert_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_inc(x_4);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_insert_elim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_insert_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lean_Diff_Action_insert_elim(x_1, x_5, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_insert_elim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Diff_Action_insert_elim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_delete_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_inc(x_4);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_delete_elim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_delete_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lean_Diff_Action_delete_elim(x_1, x_5, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_delete_elim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Diff_Action_delete_elim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_skip_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_inc(x_4);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_skip_elim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_skip_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lean_Diff_Action_skip_elim(x_1, x_5, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_skip_elim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Diff_Action_skip_elim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_noConfusion___redArg___lam__0(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_noConfusion___redArg___lam__0___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Diff_Action_noConfusion___redArg___lam__0(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_noConfusion___redArg(uint8_t x_1, uint8_t x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; 
x_3 = l_Lean_Diff_Action_ctorIdx(x_1);
x_4 = l_Lean_Diff_Action_ctorIdx(x_2);
x_5 = lean_nat_dec_eq(x_3, x_4);
lean_dec(x_4);
lean_dec(x_3);
x_6 = lean_alloc_closure((void*)(l_Lean_Diff_Action_noConfusion___redArg___lam__0___boxed), 1, 0);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_noConfusion(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Diff_Action_noConfusion___redArg(x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_noConfusion___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; uint8_t x_6; lean_object* x_7; 
x_5 = lean_unbox(x_2);
x_6 = lean_unbox(x_3);
x_7 = l_Lean_Diff_Action_noConfusion(x_1, x_5, x_6, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_noConfusion___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; uint8_t x_4; lean_object* x_5; 
x_3 = lean_unbox(x_1);
x_4 = lean_unbox(x_2);
x_5 = l_Lean_Diff_Action_noConfusion___redArg(x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Diff_instReprAction_repr___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Diff.Action.insert", 23, 23);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_instReprAction_repr___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Diff_instReprAction_repr___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Diff_instReprAction_repr___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Diff.Action.delete", 23, 23);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_instReprAction_repr___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Diff_instReprAction_repr___closed__2;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Diff_instReprAction_repr___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Diff.Action.skip", 21, 21);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_instReprAction_repr___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Diff_instReprAction_repr___closed__4;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Diff_instReprAction_repr___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(2u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Diff_instReprAction_repr___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_instReprAction_repr(uint8_t x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_10; lean_object* x_17; 
switch (x_1) {
case 0:
{
lean_object* x_24; uint8_t x_25; 
x_24 = lean_unsigned_to_nat(1024u);
x_25 = lean_nat_dec_le(x_24, x_2);
if (x_25 == 0)
{
lean_object* x_26; 
x_26 = l_Lean_Diff_instReprAction_repr___closed__6;
x_3 = x_26;
goto block_9;
}
else
{
lean_object* x_27; 
x_27 = l_Lean_Diff_instReprAction_repr___closed__7;
x_3 = x_27;
goto block_9;
}
}
case 1:
{
lean_object* x_28; uint8_t x_29; 
x_28 = lean_unsigned_to_nat(1024u);
x_29 = lean_nat_dec_le(x_28, x_2);
if (x_29 == 0)
{
lean_object* x_30; 
x_30 = l_Lean_Diff_instReprAction_repr___closed__6;
x_10 = x_30;
goto block_16;
}
else
{
lean_object* x_31; 
x_31 = l_Lean_Diff_instReprAction_repr___closed__7;
x_10 = x_31;
goto block_16;
}
}
default: 
{
lean_object* x_32; uint8_t x_33; 
x_32 = lean_unsigned_to_nat(1024u);
x_33 = lean_nat_dec_le(x_32, x_2);
if (x_33 == 0)
{
lean_object* x_34; 
x_34 = l_Lean_Diff_instReprAction_repr___closed__6;
x_17 = x_34;
goto block_23;
}
else
{
lean_object* x_35; 
x_35 = l_Lean_Diff_instReprAction_repr___closed__7;
x_17 = x_35;
goto block_23;
}
}
}
block_9:
{
lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; 
x_4 = l_Lean_Diff_instReprAction_repr___closed__1;
x_5 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_5, 0, x_3);
lean_ctor_set(x_5, 1, x_4);
x_6 = 0;
x_7 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set_uint8(x_7, sizeof(void*)*1, x_6);
x_8 = l_Repr_addAppParen(x_7, x_2);
return x_8;
}
block_16:
{
lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; 
x_11 = l_Lean_Diff_instReprAction_repr___closed__3;
x_12 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
x_13 = 0;
x_14 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_14, 0, x_12);
lean_ctor_set_uint8(x_14, sizeof(void*)*1, x_13);
x_15 = l_Repr_addAppParen(x_14, x_2);
return x_15;
}
block_23:
{
lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; 
x_18 = l_Lean_Diff_instReprAction_repr___closed__5;
x_19 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_18);
x_20 = 0;
x_21 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_21, 0, x_19);
lean_ctor_set_uint8(x_21, sizeof(void*)*1, x_20);
x_22 = l_Repr_addAppParen(x_21, x_2);
return x_22;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_instReprAction_repr___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = lean_unbox(x_1);
x_4 = l_Lean_Diff_instReprAction_repr(x_3, x_2);
lean_dec(x_2);
return x_4;
}
}
static lean_object* _init_l_Lean_Diff_instReprAction___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Diff_instReprAction_repr___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_instReprAction() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Diff_instReprAction___closed__0;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lean_Diff_instBEqAction_beq(uint8_t x_1, uint8_t x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_3 = l_Lean_Diff_Action_ctorIdx(x_1);
x_4 = l_Lean_Diff_Action_ctorIdx(x_2);
x_5 = lean_nat_dec_eq(x_3, x_4);
lean_dec(x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_instBEqAction_beq___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; 
x_3 = lean_unbox(x_1);
x_4 = lean_unbox(x_2);
x_5 = l_Lean_Diff_instBEqAction_beq(x_3, x_4);
x_6 = lean_box(x_5);
return x_6;
}
}
static lean_object* _init_l_Lean_Diff_instBEqAction___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Diff_instBEqAction_beq___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_instBEqAction() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Diff_instBEqAction___closed__0;
return x_1;
}
}
LEAN_EXPORT uint64_t l_Lean_Diff_instHashableAction_hash(uint8_t x_1) {
_start:
{
switch (x_1) {
case 0:
{
uint64_t x_2; 
x_2 = 0;
return x_2;
}
case 1:
{
uint64_t x_3; 
x_3 = 1;
return x_3;
}
default: 
{
uint64_t x_4; 
x_4 = 2;
return x_4;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_instHashableAction_hash___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; uint64_t x_3; lean_object* x_4; 
x_2 = lean_unbox(x_1);
x_3 = l_Lean_Diff_instHashableAction_hash(x_2);
x_4 = lean_box_uint64(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Diff_instHashableAction___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Diff_instHashableAction_hash___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_instHashableAction() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Diff_instHashableAction___closed__0;
return x_1;
}
}
static uint8_t _init_l_Lean_Diff_instInhabitedAction_default() {
_start:
{
uint8_t x_1; 
x_1 = 0;
return x_1;
}
}
static uint8_t _init_l_Lean_Diff_instInhabitedAction() {
_start:
{
uint8_t x_1; 
x_1 = 0;
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_instToStringAction___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("insert", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_instToStringAction___lam__0___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("delete", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_instToStringAction___lam__0___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("skip", 4, 4);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_instToStringAction___lam__0(uint8_t x_1) {
_start:
{
switch (x_1) {
case 0:
{
lean_object* x_2; 
x_2 = l_Lean_Diff_instToStringAction___lam__0___closed__0;
return x_2;
}
case 1:
{
lean_object* x_3; 
x_3 = l_Lean_Diff_instToStringAction___lam__0___closed__1;
return x_3;
}
default: 
{
lean_object* x_4; 
x_4 = l_Lean_Diff_instToStringAction___lam__0___closed__2;
return x_4;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_instToStringAction___lam__0___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
x_3 = l_Lean_Diff_instToStringAction___lam__0(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Diff_instToStringAction() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Diff_instToStringAction___lam__0___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_Action_linePrefix___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("+", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_Action_linePrefix___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("-", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_Action_linePrefix___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" ", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_linePrefix(uint8_t x_1) {
_start:
{
switch (x_1) {
case 0:
{
lean_object* x_2; 
x_2 = l_Lean_Diff_Action_linePrefix___closed__0;
return x_2;
}
case 1:
{
lean_object* x_3; 
x_3 = l_Lean_Diff_Action_linePrefix___closed__1;
return x_3;
}
default: 
{
lean_object* x_4; 
x_4 = l_Lean_Diff_Action_linePrefix___closed__2;
return x_4;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Action_linePrefix___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
x_3 = l_Lean_Diff_Action_linePrefix(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Histogram_addLeft___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
lean_inc(x_5);
lean_inc_ref(x_2);
lean_inc_ref(x_1);
x_6 = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___redArg(x_1, x_2, x_3, x_5);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_7 = lean_unsigned_to_nat(1u);
x_8 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_8, 0, x_4);
x_9 = lean_unsigned_to_nat(0u);
x_10 = lean_box(0);
x_11 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_11, 0, x_7);
lean_ctor_set(x_11, 1, x_8);
lean_ctor_set(x_11, 2, x_9);
lean_ctor_set(x_11, 3, x_10);
x_12 = l_Std_DHashMap_Internal_Raw_u2080_insert___redArg(x_1, x_2, x_3, x_5, x_11);
return x_12;
}
else
{
uint8_t x_13; 
x_13 = !lean_is_exclusive(x_6);
if (x_13 == 0)
{
lean_object* x_14; uint8_t x_15; 
x_14 = lean_ctor_get(x_6, 0);
x_15 = !lean_is_exclusive(x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_16 = lean_ctor_get(x_14, 0);
x_17 = lean_ctor_get(x_14, 1);
lean_dec(x_17);
x_18 = lean_unsigned_to_nat(1u);
x_19 = lean_nat_add(x_16, x_18);
lean_dec(x_16);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_14, 1, x_6);
lean_ctor_set(x_14, 0, x_19);
x_20 = l_Std_DHashMap_Internal_Raw_u2080_insert___redArg(x_1, x_2, x_3, x_5, x_14);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_21 = lean_ctor_get(x_14, 0);
x_22 = lean_ctor_get(x_14, 2);
x_23 = lean_ctor_get(x_14, 3);
lean_inc(x_23);
lean_inc(x_22);
lean_inc(x_21);
lean_dec(x_14);
x_24 = lean_unsigned_to_nat(1u);
x_25 = lean_nat_add(x_21, x_24);
lean_dec(x_21);
lean_ctor_set(x_6, 0, x_4);
x_26 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_6);
lean_ctor_set(x_26, 2, x_22);
lean_ctor_set(x_26, 3, x_23);
x_27 = l_Std_DHashMap_Internal_Raw_u2080_insert___redArg(x_1, x_2, x_3, x_5, x_26);
return x_27;
}
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_28 = lean_ctor_get(x_6, 0);
lean_inc(x_28);
lean_dec(x_6);
x_29 = lean_ctor_get(x_28, 0);
lean_inc(x_29);
x_30 = lean_ctor_get(x_28, 2);
lean_inc(x_30);
x_31 = lean_ctor_get(x_28, 3);
lean_inc(x_31);
if (lean_is_exclusive(x_28)) {
 lean_ctor_release(x_28, 0);
 lean_ctor_release(x_28, 1);
 lean_ctor_release(x_28, 2);
 lean_ctor_release(x_28, 3);
 x_32 = x_28;
} else {
 lean_dec_ref(x_28);
 x_32 = lean_box(0);
}
x_33 = lean_unsigned_to_nat(1u);
x_34 = lean_nat_add(x_29, x_33);
lean_dec(x_29);
x_35 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_35, 0, x_4);
if (lean_is_scalar(x_32)) {
 x_36 = lean_alloc_ctor(0, 4, 0);
} else {
 x_36 = x_32;
}
lean_ctor_set(x_36, 0, x_34);
lean_ctor_set(x_36, 1, x_35);
lean_ctor_set(x_36, 2, x_30);
lean_ctor_set(x_36, 3, x_31);
x_37 = l_Std_DHashMap_Internal_Raw_u2080_insert___redArg(x_1, x_2, x_3, x_5, x_36);
return x_37;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Histogram_addLeft(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Diff_Histogram_addLeft___redArg(x_2, x_3, x_6, x_7, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Histogram_addLeft___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Diff_Histogram_addLeft(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_5);
lean_dec(x_4);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Histogram_addRight___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
lean_inc(x_5);
lean_inc_ref(x_2);
lean_inc_ref(x_1);
x_6 = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___redArg(x_1, x_2, x_3, x_5);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_box(0);
x_9 = lean_unsigned_to_nat(1u);
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_4);
x_11 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_11, 0, x_7);
lean_ctor_set(x_11, 1, x_8);
lean_ctor_set(x_11, 2, x_9);
lean_ctor_set(x_11, 3, x_10);
x_12 = l_Std_DHashMap_Internal_Raw_u2080_insert___redArg(x_1, x_2, x_3, x_5, x_11);
return x_12;
}
else
{
uint8_t x_13; 
x_13 = !lean_is_exclusive(x_6);
if (x_13 == 0)
{
lean_object* x_14; uint8_t x_15; 
x_14 = lean_ctor_get(x_6, 0);
x_15 = !lean_is_exclusive(x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_16 = lean_ctor_get(x_14, 0);
x_17 = lean_ctor_get(x_14, 3);
lean_dec(x_17);
x_18 = lean_ctor_get(x_14, 2);
lean_dec(x_18);
x_19 = lean_unsigned_to_nat(1u);
x_20 = lean_nat_add(x_16, x_19);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_14, 3, x_6);
lean_ctor_set(x_14, 2, x_20);
x_21 = l_Std_DHashMap_Internal_Raw_u2080_insert___redArg(x_1, x_2, x_3, x_5, x_14);
return x_21;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_22 = lean_ctor_get(x_14, 0);
x_23 = lean_ctor_get(x_14, 1);
lean_inc(x_23);
lean_inc(x_22);
lean_dec(x_14);
x_24 = lean_unsigned_to_nat(1u);
x_25 = lean_nat_add(x_22, x_24);
lean_ctor_set(x_6, 0, x_4);
x_26 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_26, 0, x_22);
lean_ctor_set(x_26, 1, x_23);
lean_ctor_set(x_26, 2, x_25);
lean_ctor_set(x_26, 3, x_6);
x_27 = l_Std_DHashMap_Internal_Raw_u2080_insert___redArg(x_1, x_2, x_3, x_5, x_26);
return x_27;
}
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_28 = lean_ctor_get(x_6, 0);
lean_inc(x_28);
lean_dec(x_6);
x_29 = lean_ctor_get(x_28, 0);
lean_inc(x_29);
x_30 = lean_ctor_get(x_28, 1);
lean_inc(x_30);
if (lean_is_exclusive(x_28)) {
 lean_ctor_release(x_28, 0);
 lean_ctor_release(x_28, 1);
 lean_ctor_release(x_28, 2);
 lean_ctor_release(x_28, 3);
 x_31 = x_28;
} else {
 lean_dec_ref(x_28);
 x_31 = lean_box(0);
}
x_32 = lean_unsigned_to_nat(1u);
x_33 = lean_nat_add(x_29, x_32);
x_34 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_34, 0, x_4);
if (lean_is_scalar(x_31)) {
 x_35 = lean_alloc_ctor(0, 4, 0);
} else {
 x_35 = x_31;
}
lean_ctor_set(x_35, 0, x_29);
lean_ctor_set(x_35, 1, x_30);
lean_ctor_set(x_35, 2, x_33);
lean_ctor_set(x_35, 3, x_34);
x_36 = l_Std_DHashMap_Internal_Raw_u2080_insert___redArg(x_1, x_2, x_3, x_5, x_35);
return x_36;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Histogram_addRight(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Diff_Histogram_addRight___redArg(x_2, x_3, x_6, x_7, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_Histogram_addRight___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Diff_Histogram_addRight(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_5);
lean_dec(x_4);
return x_9;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Util_Diff_0__Lean_Diff_matchPrefix_go___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_11; uint8_t x_12; 
x_5 = lean_array_get_size(x_4);
x_11 = l_Subarray_size___redArg(x_2);
x_12 = lean_nat_dec_lt(x_5, x_11);
lean_dec(x_11);
if (x_12 == 0)
{
lean_dec_ref(x_1);
goto block_10;
}
else
{
lean_object* x_13; uint8_t x_14; 
x_13 = l_Subarray_size___redArg(x_3);
x_14 = lean_nat_dec_lt(x_5, x_13);
lean_dec(x_13);
if (x_14 == 0)
{
lean_dec_ref(x_1);
goto block_10;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; 
x_15 = l_Subarray_get___redArg(x_2, x_5);
x_16 = l_Subarray_get___redArg(x_3, x_5);
lean_inc_ref(x_1);
lean_inc(x_15);
x_17 = lean_apply_2(x_1, x_15, x_16);
x_18 = lean_unbox(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
lean_dec(x_15);
lean_dec_ref(x_1);
x_19 = l_Subarray_drop___redArg(x_2, x_5);
x_20 = l_Subarray_drop___redArg(x_3, x_5);
lean_dec(x_5);
x_21 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_21, 0, x_19);
lean_ctor_set(x_21, 1, x_20);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_4);
lean_ctor_set(x_22, 1, x_21);
return x_22;
}
else
{
lean_object* x_23; 
lean_dec(x_5);
x_23 = lean_array_push(x_4, x_15);
x_4 = x_23;
goto _start;
}
}
}
block_10:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_6 = l_Subarray_drop___redArg(x_2, x_5);
x_7 = l_Subarray_drop___redArg(x_3, x_5);
lean_dec(x_5);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_4);
lean_ctor_set(x_9, 1, x_8);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Util_Diff_0__Lean_Diff_matchPrefix_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Lean_Util_Diff_0__Lean_Diff_matchPrefix_go___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
static lean_object* _init_l_Lean_Diff_matchPrefix___redArg___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_matchPrefix___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = l_Lean_Diff_matchPrefix___redArg___closed__0;
x_5 = l___private_Lean_Util_Diff_0__Lean_Diff_matchPrefix_go___redArg(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_matchPrefix(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Diff_matchPrefix___redArg(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Util_Diff_0__Lean_Diff_matchSuffix_go___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_16; 
x_5 = l_Subarray_size___redArg(x_2);
x_16 = lean_nat_dec_lt(x_4, x_5);
if (x_16 == 0)
{
lean_dec_ref(x_1);
goto block_15;
}
else
{
lean_object* x_17; uint8_t x_18; 
x_17 = l_Subarray_size___redArg(x_3);
x_18 = lean_nat_dec_lt(x_4, x_17);
if (x_18 == 0)
{
lean_dec(x_17);
lean_dec_ref(x_1);
goto block_15;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; 
x_19 = lean_nat_sub(x_5, x_4);
lean_dec(x_5);
x_20 = lean_unsigned_to_nat(1u);
x_21 = lean_nat_sub(x_19, x_20);
x_22 = l_Subarray_get___redArg(x_2, x_21);
lean_dec(x_21);
x_23 = lean_nat_sub(x_17, x_4);
lean_dec(x_17);
x_24 = lean_nat_sub(x_23, x_20);
x_25 = l_Subarray_get___redArg(x_3, x_24);
lean_dec(x_24);
lean_inc_ref(x_1);
x_26 = lean_apply_2(x_1, x_22, x_25);
x_27 = lean_unbox(x_26);
if (x_27 == 0)
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
lean_dec(x_4);
lean_dec_ref(x_1);
lean_inc_ref(x_2);
x_28 = l_Subarray_take___redArg(x_2, x_19);
x_29 = l_Subarray_take___redArg(x_3, x_23);
lean_dec(x_23);
x_30 = l_Subarray_drop___redArg(x_2, x_19);
lean_dec(x_19);
x_31 = l_Array_ofSubarray___redArg(x_30);
x_32 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_32, 0, x_29);
lean_ctor_set(x_32, 1, x_31);
x_33 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_33, 0, x_28);
lean_ctor_set(x_33, 1, x_32);
return x_33;
}
else
{
lean_object* x_34; 
lean_dec(x_23);
lean_dec(x_19);
x_34 = lean_nat_add(x_4, x_20);
lean_dec(x_4);
x_4 = x_34;
goto _start;
}
}
}
block_15:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_6 = lean_nat_sub(x_5, x_4);
lean_dec(x_5);
lean_inc_ref(x_2);
x_7 = l_Subarray_take___redArg(x_2, x_6);
x_8 = l_Subarray_size___redArg(x_3);
x_9 = lean_nat_sub(x_8, x_4);
lean_dec(x_4);
lean_dec(x_8);
x_10 = l_Subarray_take___redArg(x_3, x_9);
lean_dec(x_9);
x_11 = l_Subarray_drop___redArg(x_2, x_6);
lean_dec(x_6);
x_12 = l_Array_ofSubarray___redArg(x_11);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_10);
lean_ctor_set(x_13, 1, x_12);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_7);
lean_ctor_set(x_14, 1, x_13);
return x_14;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Util_Diff_0__Lean_Diff_matchSuffix_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Lean_Util_Diff_0__Lean_Diff_matchSuffix_go___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_matchSuffix___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_unsigned_to_nat(0u);
x_5 = l___private_Lean_Util_Diff_0__Lean_Diff_matchSuffix_go___redArg(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_matchSuffix(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Diff_matchSuffix___redArg(x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Diff_lcs___redArg___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__6), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_lcs___redArg___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__5___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_lcs___redArg___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__4___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_lcs___redArg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__3), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_lcs___redArg___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__2___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_lcs___redArg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__1___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_lcs___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__0), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_lcs___redArg___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Diff_lcs___redArg___closed__1;
x_2 = l_Lean_Diff_lcs___redArg___closed__0;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Diff_lcs___redArg___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Lean_Diff_lcs___redArg___closed__5;
x_2 = l_Lean_Diff_lcs___redArg___closed__4;
x_3 = l_Lean_Diff_lcs___redArg___closed__3;
x_4 = l_Lean_Diff_lcs___redArg___closed__2;
x_5 = l_Lean_Diff_lcs___redArg___closed__7;
x_6 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_4);
lean_ctor_set(x_6, 2, x_3);
lean_ctor_set(x_6, 3, x_2);
lean_ctor_set(x_6, 4, x_1);
return x_6;
}
}
static lean_object* _init_l_Lean_Diff_lcs___redArg___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Diff_lcs___redArg___closed__6;
x_2 = l_Lean_Diff_lcs___redArg___closed__8;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
x_5 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
if (lean_obj_tag(x_5) == 1)
{
lean_object* x_6; 
x_6 = lean_ctor_get(x_4, 3);
lean_inc(x_6);
if (lean_obj_tag(x_6) == 1)
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_1);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_8 = lean_ctor_get(x_1, 0);
x_9 = lean_ctor_get(x_1, 1);
lean_dec(x_9);
x_10 = lean_ctor_get(x_4, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_4, 2);
lean_inc(x_11);
lean_dec(x_4);
x_12 = !lean_is_exclusive(x_5);
if (x_12 == 0)
{
uint8_t x_13; 
x_13 = !lean_is_exclusive(x_6);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_14 = lean_ctor_get(x_5, 0);
x_15 = lean_ctor_get(x_6, 0);
x_16 = lean_nat_add(x_10, x_11);
lean_dec(x_11);
lean_dec(x_10);
lean_ctor_set(x_1, 1, x_15);
lean_ctor_set(x_1, 0, x_14);
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_8);
lean_ctor_set(x_17, 1, x_1);
x_18 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_18, 0, x_16);
lean_ctor_set(x_18, 1, x_17);
lean_ctor_set(x_6, 0, x_18);
lean_ctor_set(x_5, 0, x_6);
return x_5;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_19 = lean_ctor_get(x_5, 0);
x_20 = lean_ctor_get(x_6, 0);
lean_inc(x_20);
lean_dec(x_6);
x_21 = lean_nat_add(x_10, x_11);
lean_dec(x_11);
lean_dec(x_10);
lean_ctor_set(x_1, 1, x_20);
lean_ctor_set(x_1, 0, x_19);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_8);
lean_ctor_set(x_22, 1, x_1);
x_23 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
x_24 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_24, 0, x_23);
lean_ctor_set(x_5, 0, x_24);
return x_5;
}
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_25 = lean_ctor_get(x_5, 0);
lean_inc(x_25);
lean_dec(x_5);
x_26 = lean_ctor_get(x_6, 0);
lean_inc(x_26);
if (lean_is_exclusive(x_6)) {
 lean_ctor_release(x_6, 0);
 x_27 = x_6;
} else {
 lean_dec_ref(x_6);
 x_27 = lean_box(0);
}
x_28 = lean_nat_add(x_10, x_11);
lean_dec(x_11);
lean_dec(x_10);
lean_ctor_set(x_1, 1, x_26);
lean_ctor_set(x_1, 0, x_25);
x_29 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_29, 0, x_8);
lean_ctor_set(x_29, 1, x_1);
x_30 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_30, 0, x_28);
lean_ctor_set(x_30, 1, x_29);
if (lean_is_scalar(x_27)) {
 x_31 = lean_alloc_ctor(1, 1, 0);
} else {
 x_31 = x_27;
}
lean_ctor_set(x_31, 0, x_30);
x_32 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_32, 0, x_31);
return x_32;
}
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_33 = lean_ctor_get(x_1, 0);
lean_inc(x_33);
lean_dec(x_1);
x_34 = lean_ctor_get(x_4, 0);
lean_inc(x_34);
x_35 = lean_ctor_get(x_4, 2);
lean_inc(x_35);
lean_dec(x_4);
x_36 = lean_ctor_get(x_5, 0);
lean_inc(x_36);
if (lean_is_exclusive(x_5)) {
 lean_ctor_release(x_5, 0);
 x_37 = x_5;
} else {
 lean_dec_ref(x_5);
 x_37 = lean_box(0);
}
x_38 = lean_ctor_get(x_6, 0);
lean_inc(x_38);
if (lean_is_exclusive(x_6)) {
 lean_ctor_release(x_6, 0);
 x_39 = x_6;
} else {
 lean_dec_ref(x_6);
 x_39 = lean_box(0);
}
x_40 = lean_nat_add(x_34, x_35);
lean_dec(x_35);
lean_dec(x_34);
x_41 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_41, 0, x_36);
lean_ctor_set(x_41, 1, x_38);
x_42 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_42, 0, x_33);
lean_ctor_set(x_42, 1, x_41);
x_43 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_43, 0, x_40);
lean_ctor_set(x_43, 1, x_42);
if (lean_is_scalar(x_39)) {
 x_44 = lean_alloc_ctor(1, 1, 0);
} else {
 x_44 = x_39;
}
lean_ctor_set(x_44, 0, x_43);
if (lean_is_scalar(x_37)) {
 x_45 = lean_alloc_ctor(1, 1, 0);
} else {
 x_45 = x_37;
}
lean_ctor_set(x_45, 0, x_44);
return x_45;
}
}
else
{
lean_object* x_46; uint8_t x_47; 
x_46 = lean_ctor_get(x_3, 0);
lean_inc(x_46);
x_47 = !lean_is_exclusive(x_1);
if (x_47 == 0)
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; 
x_48 = lean_ctor_get(x_1, 0);
x_49 = lean_ctor_get(x_1, 1);
lean_dec(x_49);
x_50 = lean_ctor_get(x_4, 0);
lean_inc(x_50);
x_51 = lean_ctor_get(x_4, 2);
lean_inc(x_51);
lean_dec(x_4);
x_52 = !lean_is_exclusive(x_5);
if (x_52 == 0)
{
lean_object* x_53; lean_object* x_54; uint8_t x_55; 
x_53 = lean_ctor_get(x_5, 0);
x_54 = lean_ctor_get(x_6, 0);
lean_inc(x_54);
lean_dec_ref(x_6);
x_55 = !lean_is_exclusive(x_46);
if (x_55 == 0)
{
lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; 
x_56 = lean_ctor_get(x_46, 0);
x_57 = lean_ctor_get(x_46, 1);
lean_dec(x_57);
x_58 = lean_nat_add(x_50, x_51);
lean_dec(x_51);
lean_dec(x_50);
x_59 = lean_nat_dec_lt(x_58, x_56);
lean_dec(x_56);
if (x_59 == 0)
{
lean_dec(x_58);
lean_free_object(x_46);
lean_dec(x_54);
lean_dec(x_53);
lean_free_object(x_1);
lean_dec(x_48);
lean_ctor_set(x_5, 0, x_3);
return x_5;
}
else
{
uint8_t x_60; 
x_60 = !lean_is_exclusive(x_3);
if (x_60 == 0)
{
lean_object* x_61; lean_object* x_62; 
x_61 = lean_ctor_get(x_3, 0);
lean_dec(x_61);
lean_ctor_set(x_46, 1, x_54);
lean_ctor_set(x_46, 0, x_53);
lean_ctor_set(x_1, 1, x_46);
x_62 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_62, 0, x_58);
lean_ctor_set(x_62, 1, x_1);
lean_ctor_set(x_3, 0, x_62);
lean_ctor_set(x_5, 0, x_3);
return x_5;
}
else
{
lean_object* x_63; lean_object* x_64; 
lean_dec(x_3);
lean_ctor_set(x_46, 1, x_54);
lean_ctor_set(x_46, 0, x_53);
lean_ctor_set(x_1, 1, x_46);
x_63 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_63, 0, x_58);
lean_ctor_set(x_63, 1, x_1);
x_64 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_64, 0, x_63);
lean_ctor_set(x_5, 0, x_64);
return x_5;
}
}
}
else
{
lean_object* x_65; lean_object* x_66; uint8_t x_67; 
x_65 = lean_ctor_get(x_46, 0);
lean_inc(x_65);
lean_dec(x_46);
x_66 = lean_nat_add(x_50, x_51);
lean_dec(x_51);
lean_dec(x_50);
x_67 = lean_nat_dec_lt(x_66, x_65);
lean_dec(x_65);
if (x_67 == 0)
{
lean_dec(x_66);
lean_dec(x_54);
lean_dec(x_53);
lean_free_object(x_1);
lean_dec(x_48);
lean_ctor_set(x_5, 0, x_3);
return x_5;
}
else
{
lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; 
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 x_68 = x_3;
} else {
 lean_dec_ref(x_3);
 x_68 = lean_box(0);
}
x_69 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_69, 0, x_53);
lean_ctor_set(x_69, 1, x_54);
lean_ctor_set(x_1, 1, x_69);
x_70 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_70, 0, x_66);
lean_ctor_set(x_70, 1, x_1);
if (lean_is_scalar(x_68)) {
 x_71 = lean_alloc_ctor(1, 1, 0);
} else {
 x_71 = x_68;
}
lean_ctor_set(x_71, 0, x_70);
lean_ctor_set(x_5, 0, x_71);
return x_5;
}
}
}
else
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; 
x_72 = lean_ctor_get(x_5, 0);
lean_inc(x_72);
lean_dec(x_5);
x_73 = lean_ctor_get(x_6, 0);
lean_inc(x_73);
lean_dec_ref(x_6);
x_74 = lean_ctor_get(x_46, 0);
lean_inc(x_74);
if (lean_is_exclusive(x_46)) {
 lean_ctor_release(x_46, 0);
 lean_ctor_release(x_46, 1);
 x_75 = x_46;
} else {
 lean_dec_ref(x_46);
 x_75 = lean_box(0);
}
x_76 = lean_nat_add(x_50, x_51);
lean_dec(x_51);
lean_dec(x_50);
x_77 = lean_nat_dec_lt(x_76, x_74);
lean_dec(x_74);
if (x_77 == 0)
{
lean_object* x_78; 
lean_dec(x_76);
lean_dec(x_75);
lean_dec(x_73);
lean_dec(x_72);
lean_free_object(x_1);
lean_dec(x_48);
x_78 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_78, 0, x_3);
return x_78;
}
else
{
lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; 
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 x_79 = x_3;
} else {
 lean_dec_ref(x_3);
 x_79 = lean_box(0);
}
if (lean_is_scalar(x_75)) {
 x_80 = lean_alloc_ctor(0, 2, 0);
} else {
 x_80 = x_75;
}
lean_ctor_set(x_80, 0, x_72);
lean_ctor_set(x_80, 1, x_73);
lean_ctor_set(x_1, 1, x_80);
x_81 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_81, 0, x_76);
lean_ctor_set(x_81, 1, x_1);
if (lean_is_scalar(x_79)) {
 x_82 = lean_alloc_ctor(1, 1, 0);
} else {
 x_82 = x_79;
}
lean_ctor_set(x_82, 0, x_81);
x_83 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_83, 0, x_82);
return x_83;
}
}
}
else
{
lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; 
x_84 = lean_ctor_get(x_1, 0);
lean_inc(x_84);
lean_dec(x_1);
x_85 = lean_ctor_get(x_4, 0);
lean_inc(x_85);
x_86 = lean_ctor_get(x_4, 2);
lean_inc(x_86);
lean_dec(x_4);
x_87 = lean_ctor_get(x_5, 0);
lean_inc(x_87);
if (lean_is_exclusive(x_5)) {
 lean_ctor_release(x_5, 0);
 x_88 = x_5;
} else {
 lean_dec_ref(x_5);
 x_88 = lean_box(0);
}
x_89 = lean_ctor_get(x_6, 0);
lean_inc(x_89);
lean_dec_ref(x_6);
x_90 = lean_ctor_get(x_46, 0);
lean_inc(x_90);
if (lean_is_exclusive(x_46)) {
 lean_ctor_release(x_46, 0);
 lean_ctor_release(x_46, 1);
 x_91 = x_46;
} else {
 lean_dec_ref(x_46);
 x_91 = lean_box(0);
}
x_92 = lean_nat_add(x_85, x_86);
lean_dec(x_86);
lean_dec(x_85);
x_93 = lean_nat_dec_lt(x_92, x_90);
lean_dec(x_90);
if (x_93 == 0)
{
lean_object* x_94; 
lean_dec(x_92);
lean_dec(x_91);
lean_dec(x_89);
lean_dec(x_87);
lean_dec(x_84);
if (lean_is_scalar(x_88)) {
 x_94 = lean_alloc_ctor(1, 1, 0);
} else {
 x_94 = x_88;
}
lean_ctor_set(x_94, 0, x_3);
return x_94;
}
else
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; 
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 x_95 = x_3;
} else {
 lean_dec_ref(x_3);
 x_95 = lean_box(0);
}
if (lean_is_scalar(x_91)) {
 x_96 = lean_alloc_ctor(0, 2, 0);
} else {
 x_96 = x_91;
}
lean_ctor_set(x_96, 0, x_87);
lean_ctor_set(x_96, 1, x_89);
x_97 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_97, 0, x_84);
lean_ctor_set(x_97, 1, x_96);
x_98 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_98, 0, x_92);
lean_ctor_set(x_98, 1, x_97);
if (lean_is_scalar(x_95)) {
 x_99 = lean_alloc_ctor(1, 1, 0);
} else {
 x_99 = x_95;
}
lean_ctor_set(x_99, 0, x_98);
if (lean_is_scalar(x_88)) {
 x_100 = lean_alloc_ctor(1, 1, 0);
} else {
 x_100 = x_88;
}
lean_ctor_set(x_100, 0, x_99);
return x_100;
}
}
}
}
else
{
uint8_t x_101; 
lean_dec(x_6);
lean_dec(x_4);
lean_dec_ref(x_1);
x_101 = !lean_is_exclusive(x_5);
if (x_101 == 0)
{
lean_object* x_102; 
x_102 = lean_ctor_get(x_5, 0);
lean_dec(x_102);
lean_ctor_set(x_5, 0, x_3);
return x_5;
}
else
{
lean_object* x_103; 
lean_dec(x_5);
x_103 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_103, 0, x_3);
return x_103;
}
}
}
else
{
lean_object* x_104; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec_ref(x_1);
x_104 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_104, 0, x_3);
return x_104;
}
}
}
static lean_object* _init_l_Lean_Diff_lcs___redArg___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DHashMap_Internal_AssocList_foldrM___redArg(x_1, x_2, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_8 = l_Subarray_get___redArg(x_1, x_4);
x_9 = l_Lean_Diff_Histogram_addRight___redArg(x_2, x_3, x_7, x_4, x_8);
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg___lam__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_Diff_lcs___redArg___lam__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec_ref(x_1);
return x_8;
}
}
static lean_object* _init_l_Lean_Diff_lcs___redArg___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Nat_decLt___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_lcs___redArg___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = lean_unsigned_to_nat(16u);
x_3 = lean_mk_array(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Diff_lcs___redArg___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Diff_lcs___redArg___closed__12;
x_2 = lean_unsigned_to_nat(0u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg___lam__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_8 = l_Subarray_get___redArg(x_1, x_4);
x_9 = l_Lean_Diff_Histogram_addLeft___redArg(x_2, x_3, x_7, x_4, x_8);
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg___lam__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_Diff_lcs___redArg___lam__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec_ref(x_1);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_lcs___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_47; lean_object* x_48; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; 
x_5 = l_Lean_Diff_lcs___redArg___closed__9;
x_6 = l_Std_PRange_instUpwardEnumerableNat;
lean_inc_ref(x_1);
x_7 = l_Lean_Diff_matchPrefix___redArg(x_1, x_3, x_4);
x_8 = lean_ctor_get(x_7, 1);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 0);
lean_inc(x_9);
lean_dec_ref(x_7);
x_10 = lean_ctor_get(x_8, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_8, 1);
lean_inc(x_11);
lean_dec(x_8);
lean_inc_ref(x_1);
x_12 = l_Lean_Diff_matchSuffix___redArg(x_1, x_10, x_11);
x_13 = lean_ctor_get(x_12, 1);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 0);
lean_inc(x_14);
lean_dec_ref(x_12);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_13, 1);
lean_inc(x_16);
lean_dec(x_13);
x_17 = lean_alloc_closure((void*)(l_Lean_Diff_lcs___redArg___lam__0), 3, 0);
x_18 = lean_alloc_closure((void*)(l_Lean_Diff_lcs___redArg___lam__1), 3, 0);
x_47 = lean_alloc_closure((void*)(l_Lean_Diff_lcs___redArg___lam__2), 4, 2);
lean_closure_set(x_47, 0, x_5);
lean_closure_set(x_47, 1, x_17);
lean_inc_ref(x_2);
lean_inc_ref(x_1);
lean_inc(x_15);
x_59 = lean_alloc_closure((void*)(l_Lean_Diff_lcs___redArg___lam__3___boxed), 7, 3);
lean_closure_set(x_59, 0, x_15);
lean_closure_set(x_59, 1, x_1);
lean_closure_set(x_59, 2, x_2);
x_60 = l_Lean_Diff_lcs___redArg___closed__11;
x_67 = l_Subarray_size___redArg(x_14);
x_68 = lean_unsigned_to_nat(0u);
x_69 = l_Lean_Diff_lcs___redArg___closed__13;
x_70 = lean_nat_dec_lt(x_68, x_67);
if (x_70 == 0)
{
lean_dec(x_67);
x_61 = x_69;
goto block_66;
}
else
{
lean_object* x_71; lean_object* x_72; 
lean_inc_ref(x_2);
lean_inc_ref(x_1);
lean_inc(x_14);
x_71 = lean_alloc_closure((void*)(l_Lean_Diff_lcs___redArg___lam__4___boxed), 7, 3);
lean_closure_set(x_71, 0, x_14);
lean_closure_set(x_71, 1, x_1);
lean_closure_set(x_71, 2, x_2);
x_72 = l_Std_Rxo_Iterator_instIteratorLoop_loop___redArg(x_6, x_60, x_5, x_67, x_69, x_71, x_68);
x_61 = x_72;
goto block_66;
}
block_46:
{
lean_object* x_21; 
x_21 = l_List_forIn_x27_loop___redArg(x_5, x_18, x_20, x_19);
if (lean_obj_tag(x_21) == 1)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
lean_dec_ref(x_21);
x_23 = lean_ctor_get(x_22, 1);
lean_inc(x_23);
lean_dec(x_22);
x_24 = lean_ctor_get(x_23, 1);
lean_inc(x_24);
x_25 = lean_ctor_get(x_23, 0);
lean_inc(x_25);
lean_dec(x_23);
x_26 = lean_ctor_get(x_24, 0);
lean_inc(x_26);
x_27 = lean_ctor_get(x_24, 1);
lean_inc(x_27);
lean_dec(x_24);
x_28 = l_Subarray_split___redArg(x_14, x_26);
lean_dec(x_26);
x_29 = lean_ctor_get(x_28, 0);
lean_inc(x_29);
x_30 = lean_ctor_get(x_28, 1);
lean_inc(x_30);
lean_dec_ref(x_28);
x_31 = l_Subarray_split___redArg(x_15, x_27);
lean_dec(x_27);
x_32 = lean_ctor_get(x_31, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_31, 1);
lean_inc(x_33);
lean_dec_ref(x_31);
lean_inc_ref(x_2);
lean_inc_ref(x_1);
x_34 = l_Lean_Diff_lcs___redArg(x_1, x_2, x_29, x_32);
x_35 = l_Array_append___redArg(x_9, x_34);
lean_dec_ref(x_34);
x_36 = lean_unsigned_to_nat(1u);
x_37 = l_Lean_Diff_lcs___redArg___closed__10;
x_38 = lean_array_push(x_37, x_25);
x_39 = l_Array_append___redArg(x_35, x_38);
lean_dec_ref(x_38);
x_40 = l_Subarray_drop___redArg(x_30, x_36);
x_41 = l_Subarray_drop___redArg(x_33, x_36);
x_42 = l_Lean_Diff_lcs___redArg(x_1, x_2, x_40, x_41);
x_43 = l_Array_append___redArg(x_39, x_42);
lean_dec_ref(x_42);
x_44 = l_Array_append___redArg(x_43, x_16);
lean_dec(x_16);
return x_44;
}
else
{
lean_object* x_45; 
lean_dec(x_21);
lean_dec(x_15);
lean_dec(x_14);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_45 = l_Array_append___redArg(x_9, x_16);
lean_dec(x_16);
return x_45;
}
}
block_58:
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; 
x_49 = lean_ctor_get(x_48, 1);
lean_inc_ref(x_49);
lean_dec_ref(x_48);
x_50 = lean_box(0);
x_51 = lean_box(0);
x_52 = lean_array_get_size(x_49);
x_53 = lean_unsigned_to_nat(0u);
x_54 = lean_nat_dec_lt(x_53, x_52);
if (x_54 == 0)
{
lean_dec(x_52);
lean_dec_ref(x_49);
lean_dec_ref(x_47);
x_19 = x_50;
x_20 = x_51;
goto block_46;
}
else
{
size_t x_55; size_t x_56; lean_object* x_57; 
x_55 = lean_usize_of_nat(x_52);
lean_dec(x_52);
x_56 = 0;
x_57 = l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), x_5, x_47, x_49, x_55, x_56, x_51);
x_19 = x_50;
x_20 = x_57;
goto block_46;
}
}
block_66:
{
lean_object* x_62; lean_object* x_63; uint8_t x_64; 
x_62 = l_Subarray_size___redArg(x_15);
x_63 = lean_unsigned_to_nat(0u);
x_64 = lean_nat_dec_lt(x_63, x_62);
if (x_64 == 0)
{
lean_dec(x_62);
lean_dec_ref(x_59);
x_48 = x_61;
goto block_58;
}
else
{
lean_object* x_65; 
x_65 = l_Std_Rxo_Iterator_instIteratorLoop_loop___redArg(x_6, x_60, x_5, x_62, x_61, x_59, x_63);
x_48 = x_65;
goto block_58;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_lcs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Diff_lcs___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__0(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; lean_object* x_4; 
x_2 = 0;
x_3 = lean_box(x_2);
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__1(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; lean_object* x_4; 
x_2 = 1;
x_3 = lean_box(x_2);
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_14; uint8_t x_25; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
if (lean_is_exclusive(x_7)) {
 lean_ctor_release(x_7, 0);
 lean_ctor_release(x_7, 1);
 x_10 = x_7;
} else {
 lean_dec_ref(x_7);
 x_10 = lean_box(0);
}
x_25 = lean_nat_dec_lt(x_8, x_3);
if (x_25 == 0)
{
lean_dec(x_5);
lean_dec_ref(x_4);
x_14 = x_25;
goto block_24;
}
else
{
lean_object* x_26; lean_object* x_27; uint8_t x_28; 
lean_inc(x_1);
x_26 = lean_array_get_borrowed(x_1, x_2, x_8);
lean_inc(x_26);
x_27 = lean_apply_2(x_4, x_26, x_5);
x_28 = lean_unbox(x_27);
if (x_28 == 0)
{
x_14 = x_25;
goto block_24;
}
else
{
lean_dec(x_1);
goto block_13;
}
}
block_13:
{
lean_object* x_11; lean_object* x_12; 
if (lean_is_scalar(x_10)) {
 x_11 = lean_alloc_ctor(0, 2, 0);
} else {
 x_11 = x_10;
}
lean_ctor_set(x_11, 0, x_8);
lean_ctor_set(x_11, 1, x_9);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
block_24:
{
if (x_14 == 0)
{
lean_dec(x_1);
goto block_13;
}
else
{
uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
lean_dec(x_10);
x_15 = 1;
x_16 = lean_array_get_borrowed(x_1, x_2, x_8);
x_17 = lean_box(x_15);
lean_inc(x_16);
x_18 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set(x_18, 1, x_16);
x_19 = lean_array_push(x_9, x_18);
x_20 = lean_unsigned_to_nat(1u);
x_21 = lean_nat_add(x_8, x_20);
lean_dec(x_8);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_19);
x_23 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_23, 0, x_22);
return x_23;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_Diff_diff___redArg___lam__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_14; uint8_t x_25; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
if (lean_is_exclusive(x_7)) {
 lean_ctor_release(x_7, 0);
 lean_ctor_release(x_7, 1);
 x_10 = x_7;
} else {
 lean_dec_ref(x_7);
 x_10 = lean_box(0);
}
x_25 = lean_nat_dec_lt(x_8, x_3);
if (x_25 == 0)
{
lean_dec(x_5);
lean_dec_ref(x_4);
x_14 = x_25;
goto block_24;
}
else
{
lean_object* x_26; lean_object* x_27; uint8_t x_28; 
lean_inc(x_1);
x_26 = lean_array_get_borrowed(x_1, x_2, x_8);
lean_inc(x_26);
x_27 = lean_apply_2(x_4, x_26, x_5);
x_28 = lean_unbox(x_27);
if (x_28 == 0)
{
x_14 = x_25;
goto block_24;
}
else
{
lean_dec(x_1);
goto block_13;
}
}
block_13:
{
lean_object* x_11; lean_object* x_12; 
if (lean_is_scalar(x_10)) {
 x_11 = lean_alloc_ctor(0, 2, 0);
} else {
 x_11 = x_10;
}
lean_ctor_set(x_11, 0, x_8);
lean_ctor_set(x_11, 1, x_9);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
block_24:
{
if (x_14 == 0)
{
lean_dec(x_1);
goto block_13;
}
else
{
uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
lean_dec(x_10);
x_15 = 0;
x_16 = lean_array_get_borrowed(x_1, x_2, x_8);
x_17 = lean_box(x_15);
lean_inc(x_16);
x_18 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set(x_18, 1, x_16);
x_19 = lean_array_push(x_9, x_18);
x_20 = lean_unsigned_to_nat(1u);
x_21 = lean_nat_add(x_8, x_20);
lean_dec(x_8);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_19);
x_23 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_23, 0, x_22);
return x_23;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_Diff_diff___redArg___lam__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
uint8_t x_11; 
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; uint8_t x_13; 
x_12 = lean_ctor_get(x_10, 1);
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; 
x_14 = lean_ctor_get(x_10, 0);
x_15 = lean_ctor_get(x_12, 0);
lean_inc(x_8);
lean_inc_ref(x_4);
lean_inc(x_1);
x_16 = lean_alloc_closure((void*)(l_Lean_Diff_diff___redArg___lam__2___boxed), 7, 5);
lean_closure_set(x_16, 0, x_1);
lean_closure_set(x_16, 1, x_2);
lean_closure_set(x_16, 2, x_3);
lean_closure_set(x_16, 3, x_4);
lean_closure_set(x_16, 4, x_8);
lean_ctor_set(x_12, 0, x_14);
lean_inc_ref(x_5);
x_17 = l___private_Init_While_0__Lean_Loop_forIn_loop(lean_box(0), lean_box(0), x_5, x_16, x_12);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_19 = lean_ctor_get(x_17, 0);
lean_inc(x_8);
x_20 = lean_alloc_closure((void*)(l_Lean_Diff_diff___redArg___lam__3___boxed), 7, 5);
lean_closure_set(x_20, 0, x_1);
lean_closure_set(x_20, 1, x_6);
lean_closure_set(x_20, 2, x_7);
lean_closure_set(x_20, 3, x_4);
lean_closure_set(x_20, 4, x_8);
lean_ctor_set(x_17, 0, x_15);
x_21 = l___private_Init_While_0__Lean_Loop_forIn_loop(lean_box(0), lean_box(0), x_5, x_20, x_17);
x_22 = !lean_is_exclusive(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_23 = lean_ctor_get(x_21, 0);
x_24 = lean_ctor_get(x_21, 1);
x_25 = 2;
x_26 = lean_box(x_25);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_8);
x_28 = lean_array_push(x_24, x_27);
x_29 = lean_unsigned_to_nat(1u);
x_30 = lean_nat_add(x_19, x_29);
lean_dec(x_19);
x_31 = lean_nat_add(x_23, x_29);
lean_dec(x_23);
lean_ctor_set(x_21, 1, x_28);
lean_ctor_set(x_21, 0, x_31);
lean_ctor_set(x_10, 1, x_21);
lean_ctor_set(x_10, 0, x_30);
x_32 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_32, 0, x_10);
return x_32;
}
else
{
lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_33 = lean_ctor_get(x_21, 0);
x_34 = lean_ctor_get(x_21, 1);
lean_inc(x_34);
lean_inc(x_33);
lean_dec(x_21);
x_35 = 2;
x_36 = lean_box(x_35);
x_37 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_37, 0, x_36);
lean_ctor_set(x_37, 1, x_8);
x_38 = lean_array_push(x_34, x_37);
x_39 = lean_unsigned_to_nat(1u);
x_40 = lean_nat_add(x_19, x_39);
lean_dec(x_19);
x_41 = lean_nat_add(x_33, x_39);
lean_dec(x_33);
x_42 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_42, 0, x_41);
lean_ctor_set(x_42, 1, x_38);
lean_ctor_set(x_10, 1, x_42);
lean_ctor_set(x_10, 0, x_40);
x_43 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_43, 0, x_10);
return x_43;
}
}
else
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_44 = lean_ctor_get(x_17, 0);
x_45 = lean_ctor_get(x_17, 1);
lean_inc(x_45);
lean_inc(x_44);
lean_dec(x_17);
lean_inc(x_8);
x_46 = lean_alloc_closure((void*)(l_Lean_Diff_diff___redArg___lam__3___boxed), 7, 5);
lean_closure_set(x_46, 0, x_1);
lean_closure_set(x_46, 1, x_6);
lean_closure_set(x_46, 2, x_7);
lean_closure_set(x_46, 3, x_4);
lean_closure_set(x_46, 4, x_8);
x_47 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_47, 0, x_15);
lean_ctor_set(x_47, 1, x_45);
x_48 = l___private_Init_While_0__Lean_Loop_forIn_loop(lean_box(0), lean_box(0), x_5, x_46, x_47);
x_49 = lean_ctor_get(x_48, 0);
lean_inc(x_49);
x_50 = lean_ctor_get(x_48, 1);
lean_inc(x_50);
if (lean_is_exclusive(x_48)) {
 lean_ctor_release(x_48, 0);
 lean_ctor_release(x_48, 1);
 x_51 = x_48;
} else {
 lean_dec_ref(x_48);
 x_51 = lean_box(0);
}
x_52 = 2;
x_53 = lean_box(x_52);
x_54 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_54, 0, x_53);
lean_ctor_set(x_54, 1, x_8);
x_55 = lean_array_push(x_50, x_54);
x_56 = lean_unsigned_to_nat(1u);
x_57 = lean_nat_add(x_44, x_56);
lean_dec(x_44);
x_58 = lean_nat_add(x_49, x_56);
lean_dec(x_49);
if (lean_is_scalar(x_51)) {
 x_59 = lean_alloc_ctor(0, 2, 0);
} else {
 x_59 = x_51;
}
lean_ctor_set(x_59, 0, x_58);
lean_ctor_set(x_59, 1, x_55);
lean_ctor_set(x_10, 1, x_59);
lean_ctor_set(x_10, 0, x_57);
x_60 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_60, 0, x_10);
return x_60;
}
}
else
{
lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; 
x_61 = lean_ctor_get(x_10, 0);
x_62 = lean_ctor_get(x_12, 0);
x_63 = lean_ctor_get(x_12, 1);
lean_inc(x_63);
lean_inc(x_62);
lean_dec(x_12);
lean_inc(x_8);
lean_inc_ref(x_4);
lean_inc(x_1);
x_64 = lean_alloc_closure((void*)(l_Lean_Diff_diff___redArg___lam__2___boxed), 7, 5);
lean_closure_set(x_64, 0, x_1);
lean_closure_set(x_64, 1, x_2);
lean_closure_set(x_64, 2, x_3);
lean_closure_set(x_64, 3, x_4);
lean_closure_set(x_64, 4, x_8);
x_65 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_65, 0, x_61);
lean_ctor_set(x_65, 1, x_63);
lean_inc_ref(x_5);
x_66 = l___private_Init_While_0__Lean_Loop_forIn_loop(lean_box(0), lean_box(0), x_5, x_64, x_65);
x_67 = lean_ctor_get(x_66, 0);
lean_inc(x_67);
x_68 = lean_ctor_get(x_66, 1);
lean_inc(x_68);
if (lean_is_exclusive(x_66)) {
 lean_ctor_release(x_66, 0);
 lean_ctor_release(x_66, 1);
 x_69 = x_66;
} else {
 lean_dec_ref(x_66);
 x_69 = lean_box(0);
}
lean_inc(x_8);
x_70 = lean_alloc_closure((void*)(l_Lean_Diff_diff___redArg___lam__3___boxed), 7, 5);
lean_closure_set(x_70, 0, x_1);
lean_closure_set(x_70, 1, x_6);
lean_closure_set(x_70, 2, x_7);
lean_closure_set(x_70, 3, x_4);
lean_closure_set(x_70, 4, x_8);
if (lean_is_scalar(x_69)) {
 x_71 = lean_alloc_ctor(0, 2, 0);
} else {
 x_71 = x_69;
}
lean_ctor_set(x_71, 0, x_62);
lean_ctor_set(x_71, 1, x_68);
x_72 = l___private_Init_While_0__Lean_Loop_forIn_loop(lean_box(0), lean_box(0), x_5, x_70, x_71);
x_73 = lean_ctor_get(x_72, 0);
lean_inc(x_73);
x_74 = lean_ctor_get(x_72, 1);
lean_inc(x_74);
if (lean_is_exclusive(x_72)) {
 lean_ctor_release(x_72, 0);
 lean_ctor_release(x_72, 1);
 x_75 = x_72;
} else {
 lean_dec_ref(x_72);
 x_75 = lean_box(0);
}
x_76 = 2;
x_77 = lean_box(x_76);
x_78 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_78, 0, x_77);
lean_ctor_set(x_78, 1, x_8);
x_79 = lean_array_push(x_74, x_78);
x_80 = lean_unsigned_to_nat(1u);
x_81 = lean_nat_add(x_67, x_80);
lean_dec(x_67);
x_82 = lean_nat_add(x_73, x_80);
lean_dec(x_73);
if (lean_is_scalar(x_75)) {
 x_83 = lean_alloc_ctor(0, 2, 0);
} else {
 x_83 = x_75;
}
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_79);
lean_ctor_set(x_10, 1, x_83);
lean_ctor_set(x_10, 0, x_81);
x_84 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_84, 0, x_10);
return x_84;
}
}
else
{
lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; 
x_85 = lean_ctor_get(x_10, 1);
x_86 = lean_ctor_get(x_10, 0);
lean_inc(x_85);
lean_inc(x_86);
lean_dec(x_10);
x_87 = lean_ctor_get(x_85, 0);
lean_inc(x_87);
x_88 = lean_ctor_get(x_85, 1);
lean_inc(x_88);
if (lean_is_exclusive(x_85)) {
 lean_ctor_release(x_85, 0);
 lean_ctor_release(x_85, 1);
 x_89 = x_85;
} else {
 lean_dec_ref(x_85);
 x_89 = lean_box(0);
}
lean_inc(x_8);
lean_inc_ref(x_4);
lean_inc(x_1);
x_90 = lean_alloc_closure((void*)(l_Lean_Diff_diff___redArg___lam__2___boxed), 7, 5);
lean_closure_set(x_90, 0, x_1);
lean_closure_set(x_90, 1, x_2);
lean_closure_set(x_90, 2, x_3);
lean_closure_set(x_90, 3, x_4);
lean_closure_set(x_90, 4, x_8);
if (lean_is_scalar(x_89)) {
 x_91 = lean_alloc_ctor(0, 2, 0);
} else {
 x_91 = x_89;
}
lean_ctor_set(x_91, 0, x_86);
lean_ctor_set(x_91, 1, x_88);
lean_inc_ref(x_5);
x_92 = l___private_Init_While_0__Lean_Loop_forIn_loop(lean_box(0), lean_box(0), x_5, x_90, x_91);
x_93 = lean_ctor_get(x_92, 0);
lean_inc(x_93);
x_94 = lean_ctor_get(x_92, 1);
lean_inc(x_94);
if (lean_is_exclusive(x_92)) {
 lean_ctor_release(x_92, 0);
 lean_ctor_release(x_92, 1);
 x_95 = x_92;
} else {
 lean_dec_ref(x_92);
 x_95 = lean_box(0);
}
lean_inc(x_8);
x_96 = lean_alloc_closure((void*)(l_Lean_Diff_diff___redArg___lam__3___boxed), 7, 5);
lean_closure_set(x_96, 0, x_1);
lean_closure_set(x_96, 1, x_6);
lean_closure_set(x_96, 2, x_7);
lean_closure_set(x_96, 3, x_4);
lean_closure_set(x_96, 4, x_8);
if (lean_is_scalar(x_95)) {
 x_97 = lean_alloc_ctor(0, 2, 0);
} else {
 x_97 = x_95;
}
lean_ctor_set(x_97, 0, x_87);
lean_ctor_set(x_97, 1, x_94);
x_98 = l___private_Init_While_0__Lean_Loop_forIn_loop(lean_box(0), lean_box(0), x_5, x_96, x_97);
x_99 = lean_ctor_get(x_98, 0);
lean_inc(x_99);
x_100 = lean_ctor_get(x_98, 1);
lean_inc(x_100);
if (lean_is_exclusive(x_98)) {
 lean_ctor_release(x_98, 0);
 lean_ctor_release(x_98, 1);
 x_101 = x_98;
} else {
 lean_dec_ref(x_98);
 x_101 = lean_box(0);
}
x_102 = 2;
x_103 = lean_box(x_102);
x_104 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_104, 0, x_103);
lean_ctor_set(x_104, 1, x_8);
x_105 = lean_array_push(x_100, x_104);
x_106 = lean_unsigned_to_nat(1u);
x_107 = lean_nat_add(x_93, x_106);
lean_dec(x_93);
x_108 = lean_nat_add(x_99, x_106);
lean_dec(x_99);
if (lean_is_scalar(x_101)) {
 x_109 = lean_alloc_ctor(0, 2, 0);
} else {
 x_109 = x_101;
}
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_105);
x_110 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_110, 0, x_107);
lean_ctor_set(x_110, 1, x_109);
x_111 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_111, 0, x_110);
return x_111;
}
}
}
static lean_object* _init_l_Lean_Diff_diff___redArg___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Diff_diff___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Diff_diff___redArg___closed__0;
x_2 = lean_unsigned_to_nat(0u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Diff_diff___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Diff_diff___redArg___closed__1;
x_2 = lean_unsigned_to_nat(0u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 1);
x_8 = lean_nat_dec_lt(x_6, x_1);
if (x_8 == 0)
{
lean_object* x_9; 
x_9 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_9, 0, x_4);
return x_9;
}
else
{
uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_10 = 1;
x_11 = lean_array_fget_borrowed(x_2, x_6);
x_12 = lean_box(x_10);
lean_inc(x_11);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_11);
x_14 = lean_array_push(x_7, x_13);
x_15 = lean_unsigned_to_nat(1u);
x_16 = lean_nat_add(x_6, x_15);
lean_dec(x_6);
lean_ctor_set(x_4, 1, x_14);
lean_ctor_set(x_4, 0, x_16);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_4);
return x_17;
}
}
else
{
lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_18 = lean_ctor_get(x_4, 0);
x_19 = lean_ctor_get(x_4, 1);
lean_inc(x_19);
lean_inc(x_18);
lean_dec(x_4);
x_20 = lean_nat_dec_lt(x_18, x_1);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; 
x_21 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_21, 0, x_18);
lean_ctor_set(x_21, 1, x_19);
x_22 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_22, 0, x_21);
return x_22;
}
else
{
uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_23 = 1;
x_24 = lean_array_fget_borrowed(x_2, x_18);
x_25 = lean_box(x_23);
lean_inc(x_24);
x_26 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_24);
x_27 = lean_array_push(x_19, x_26);
x_28 = lean_unsigned_to_nat(1u);
x_29 = lean_nat_add(x_18, x_28);
lean_dec(x_18);
x_30 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_30, 0, x_29);
lean_ctor_set(x_30, 1, x_27);
x_31 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_31, 0, x_30);
return x_31;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Diff_diff___redArg___lam__5(x_1, x_2, x_3, x_4);
lean_dec_ref(x_2);
lean_dec(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 1);
x_8 = lean_nat_dec_lt(x_6, x_1);
if (x_8 == 0)
{
lean_object* x_9; 
x_9 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_9, 0, x_4);
return x_9;
}
else
{
uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_10 = 0;
x_11 = lean_array_fget_borrowed(x_2, x_6);
x_12 = lean_box(x_10);
lean_inc(x_11);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_11);
x_14 = lean_array_push(x_7, x_13);
x_15 = lean_unsigned_to_nat(1u);
x_16 = lean_nat_add(x_6, x_15);
lean_dec(x_6);
lean_ctor_set(x_4, 1, x_14);
lean_ctor_set(x_4, 0, x_16);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_4);
return x_17;
}
}
else
{
lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_18 = lean_ctor_get(x_4, 0);
x_19 = lean_ctor_get(x_4, 1);
lean_inc(x_19);
lean_inc(x_18);
lean_dec(x_4);
x_20 = lean_nat_dec_lt(x_18, x_1);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; 
x_21 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_21, 0, x_18);
lean_ctor_set(x_21, 1, x_19);
x_22 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_22, 0, x_21);
return x_22;
}
else
{
uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_23 = 0;
x_24 = lean_array_fget_borrowed(x_2, x_18);
x_25 = lean_box(x_23);
lean_inc(x_24);
x_26 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_24);
x_27 = lean_array_push(x_19, x_26);
x_28 = lean_unsigned_to_nat(1u);
x_29 = lean_nat_add(x_18, x_28);
lean_dec(x_18);
x_30 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_30, 0, x_29);
lean_ctor_set(x_30, 1, x_27);
x_31 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_31, 0, x_30);
return x_31;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg___lam__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Diff_diff___redArg___lam__6(x_1, x_2, x_3, x_4);
lean_dec_ref(x_2);
lean_dec(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_diff___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_array_get_size(x_4);
x_8 = lean_nat_dec_lt(x_6, x_7);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; 
lean_dec(x_7);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_9 = lean_alloc_closure((void*)(l_Lean_Diff_diff___redArg___lam__0), 1, 0);
x_10 = l_Lean_Diff_lcs___redArg___closed__9;
x_11 = lean_array_size(x_5);
x_12 = 0;
x_13 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map(lean_box(0), lean_box(0), lean_box(0), x_10, x_9, x_11, x_12, x_5);
return x_13;
}
else
{
lean_object* x_14; uint8_t x_15; 
x_14 = lean_array_get_size(x_5);
x_15 = lean_nat_dec_lt(x_6, x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; 
lean_dec(x_14);
lean_dec(x_7);
lean_dec_ref(x_5);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_16 = lean_alloc_closure((void*)(l_Lean_Diff_diff___redArg___lam__1), 1, 0);
x_17 = l_Lean_Diff_lcs___redArg___closed__9;
x_18 = lean_array_size(x_4);
x_19 = 0;
x_20 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map(lean_box(0), lean_box(0), lean_box(0), x_17, x_16, x_18, x_19, x_4);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; size_t x_27; size_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
lean_inc(x_7);
lean_inc_ref(x_4);
x_21 = l_Array_toSubarray___redArg(x_4, x_6, x_7);
lean_inc(x_14);
lean_inc_ref(x_5);
x_22 = l_Array_toSubarray___redArg(x_5, x_6, x_14);
lean_inc_ref(x_1);
x_23 = l_Lean_Diff_lcs___redArg(x_1, x_2, x_21, x_22);
x_24 = l_Lean_Diff_lcs___redArg___closed__9;
lean_inc(x_14);
lean_inc_ref(x_5);
lean_inc(x_7);
lean_inc_ref(x_4);
x_25 = lean_alloc_closure((void*)(l_Lean_Diff_diff___redArg___lam__4), 10, 7);
lean_closure_set(x_25, 0, x_3);
lean_closure_set(x_25, 1, x_4);
lean_closure_set(x_25, 2, x_7);
lean_closure_set(x_25, 3, x_1);
lean_closure_set(x_25, 4, x_24);
lean_closure_set(x_25, 5, x_5);
lean_closure_set(x_25, 6, x_14);
x_26 = l_Lean_Diff_diff___redArg___closed__2;
x_27 = lean_array_size(x_23);
x_28 = 0;
x_29 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop(lean_box(0), lean_box(0), lean_box(0), x_24, x_23, x_25, x_27, x_28, x_26);
x_30 = lean_ctor_get(x_29, 1);
lean_inc(x_30);
x_31 = lean_ctor_get(x_29, 0);
lean_inc(x_31);
lean_dec(x_29);
x_32 = !lean_is_exclusive(x_30);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; 
x_33 = lean_ctor_get(x_30, 0);
x_34 = lean_alloc_closure((void*)(l_Lean_Diff_diff___redArg___lam__5___boxed), 4, 2);
lean_closure_set(x_34, 0, x_7);
lean_closure_set(x_34, 1, x_4);
lean_ctor_set(x_30, 0, x_31);
x_35 = l___private_Init_While_0__Lean_Loop_forIn_loop(lean_box(0), lean_box(0), x_24, x_34, x_30);
x_36 = !lean_is_exclusive(x_35);
if (x_36 == 0)
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
x_37 = lean_ctor_get(x_35, 0);
lean_dec(x_37);
x_38 = lean_alloc_closure((void*)(l_Lean_Diff_diff___redArg___lam__6___boxed), 4, 2);
lean_closure_set(x_38, 0, x_14);
lean_closure_set(x_38, 1, x_5);
lean_ctor_set(x_35, 0, x_33);
x_39 = l___private_Init_While_0__Lean_Loop_forIn_loop(lean_box(0), lean_box(0), x_24, x_38, x_35);
x_40 = lean_ctor_get(x_39, 1);
lean_inc(x_40);
lean_dec(x_39);
return x_40;
}
else
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_41 = lean_ctor_get(x_35, 1);
lean_inc(x_41);
lean_dec(x_35);
x_42 = lean_alloc_closure((void*)(l_Lean_Diff_diff___redArg___lam__6___boxed), 4, 2);
lean_closure_set(x_42, 0, x_14);
lean_closure_set(x_42, 1, x_5);
x_43 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_43, 0, x_33);
lean_ctor_set(x_43, 1, x_41);
x_44 = l___private_Init_While_0__Lean_Loop_forIn_loop(lean_box(0), lean_box(0), x_24, x_42, x_43);
x_45 = lean_ctor_get(x_44, 1);
lean_inc(x_45);
lean_dec(x_44);
return x_45;
}
}
else
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 
x_46 = lean_ctor_get(x_30, 0);
x_47 = lean_ctor_get(x_30, 1);
lean_inc(x_47);
lean_inc(x_46);
lean_dec(x_30);
x_48 = lean_alloc_closure((void*)(l_Lean_Diff_diff___redArg___lam__5___boxed), 4, 2);
lean_closure_set(x_48, 0, x_7);
lean_closure_set(x_48, 1, x_4);
x_49 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_49, 0, x_31);
lean_ctor_set(x_49, 1, x_47);
x_50 = l___private_Init_While_0__Lean_Loop_forIn_loop(lean_box(0), lean_box(0), x_24, x_48, x_49);
x_51 = lean_ctor_get(x_50, 1);
lean_inc(x_51);
if (lean_is_exclusive(x_50)) {
 lean_ctor_release(x_50, 0);
 lean_ctor_release(x_50, 1);
 x_52 = x_50;
} else {
 lean_dec_ref(x_50);
 x_52 = lean_box(0);
}
x_53 = lean_alloc_closure((void*)(l_Lean_Diff_diff___redArg___lam__6___boxed), 4, 2);
lean_closure_set(x_53, 0, x_14);
lean_closure_set(x_53, 1, x_5);
if (lean_is_scalar(x_52)) {
 x_54 = lean_alloc_ctor(0, 2, 0);
} else {
 x_54 = x_52;
}
lean_ctor_set(x_54, 0, x_46);
lean_ctor_set(x_54, 1, x_51);
x_55 = l___private_Init_While_0__Lean_Loop_forIn_loop(lean_box(0), lean_box(0), x_24, x_53, x_54);
x_56 = lean_ctor_get(x_55, 1);
lean_inc(x_56);
lean_dec(x_55);
return x_56;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_diff(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Diff_diff___redArg(x_2, x_3, x_4, x_5, x_6);
return x_7;
}
}
static lean_object* _init_l_Lean_Diff_linesToString___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Diff_linesToString___redArg___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\n", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_linesToString___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_6 = lean_ctor_get(x_3, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 1);
lean_inc(x_7);
lean_dec_ref(x_3);
x_8 = lean_apply_1(x_1, x_7);
x_9 = lean_string_dec_eq(x_8, x_2);
if (x_9 == 0)
{
uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_10 = lean_unbox(x_6);
lean_dec(x_6);
x_11 = l_Lean_Diff_Action_linePrefix(x_10);
x_12 = l_Lean_Diff_Action_linePrefix___closed__2;
x_13 = lean_string_append(x_11, x_12);
x_14 = lean_string_append(x_13, x_8);
lean_dec_ref(x_8);
x_15 = l_Lean_Diff_linesToString___redArg___lam__0___closed__0;
x_16 = lean_string_append(x_14, x_15);
x_17 = lean_string_append(x_5, x_16);
lean_dec_ref(x_16);
x_18 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_18, 0, x_17);
return x_18;
}
else
{
uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
lean_dec_ref(x_8);
x_19 = lean_unbox(x_6);
lean_dec(x_6);
x_20 = l_Lean_Diff_Action_linePrefix(x_19);
x_21 = l_Lean_Diff_linesToString___redArg___lam__0___closed__0;
x_22 = lean_string_append(x_20, x_21);
x_23 = lean_string_append(x_5, x_22);
lean_dec_ref(x_22);
x_24 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_24, 0, x_23);
return x_24;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_linesToString___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Diff_linesToString___redArg___lam__0(x_1, x_2, x_3, x_4, x_5);
lean_dec_ref(x_2);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_linesToString___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; size_t x_6; size_t x_7; lean_object* x_8; 
x_3 = l_Lean_Diff_lcs___redArg___closed__9;
x_4 = l_Lean_Diff_linesToString___redArg___closed__0;
x_5 = lean_alloc_closure((void*)(l_Lean_Diff_linesToString___redArg___lam__0___boxed), 5, 2);
lean_closure_set(x_5, 0, x_1);
lean_closure_set(x_5, 1, x_4);
x_6 = lean_array_size(x_2);
x_7 = 0;
x_8 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop(lean_box(0), lean_box(0), lean_box(0), x_3, x_2, x_5, x_6, x_7, x_4);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Diff_linesToString(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Diff_linesToString___redArg(x_2, x_3);
return x_4;
}
}
lean_object* initialize_Init_Data_Array_Subarray_Split(uint8_t builtin);
lean_object* initialize_Init_Data_Slice_Array_Iterator(uint8_t builtin);
lean_object* initialize_Init_Data_Range(uint8_t builtin);
lean_object* initialize_Std_Data_HashMap_Basic(uint8_t builtin);
lean_object* initialize_Init_Data_Iterators_Combinators_ULift(uint8_t builtin);
lean_object* initialize_Init_Data_String_Basic(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Util_Diff(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Init_Data_Array_Subarray_Split(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Data_Slice_Array_Iterator(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Data_Range(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Std_Data_HashMap_Basic(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Data_Iterators_Combinators_ULift(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Data_String_Basic(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Diff_instReprAction_repr___closed__0 = _init_l_Lean_Diff_instReprAction_repr___closed__0();
lean_mark_persistent(l_Lean_Diff_instReprAction_repr___closed__0);
l_Lean_Diff_instReprAction_repr___closed__1 = _init_l_Lean_Diff_instReprAction_repr___closed__1();
lean_mark_persistent(l_Lean_Diff_instReprAction_repr___closed__1);
l_Lean_Diff_instReprAction_repr___closed__2 = _init_l_Lean_Diff_instReprAction_repr___closed__2();
lean_mark_persistent(l_Lean_Diff_instReprAction_repr___closed__2);
l_Lean_Diff_instReprAction_repr___closed__3 = _init_l_Lean_Diff_instReprAction_repr___closed__3();
lean_mark_persistent(l_Lean_Diff_instReprAction_repr___closed__3);
l_Lean_Diff_instReprAction_repr___closed__4 = _init_l_Lean_Diff_instReprAction_repr___closed__4();
lean_mark_persistent(l_Lean_Diff_instReprAction_repr___closed__4);
l_Lean_Diff_instReprAction_repr___closed__5 = _init_l_Lean_Diff_instReprAction_repr___closed__5();
lean_mark_persistent(l_Lean_Diff_instReprAction_repr___closed__5);
l_Lean_Diff_instReprAction_repr___closed__6 = _init_l_Lean_Diff_instReprAction_repr___closed__6();
lean_mark_persistent(l_Lean_Diff_instReprAction_repr___closed__6);
l_Lean_Diff_instReprAction_repr___closed__7 = _init_l_Lean_Diff_instReprAction_repr___closed__7();
lean_mark_persistent(l_Lean_Diff_instReprAction_repr___closed__7);
l_Lean_Diff_instReprAction___closed__0 = _init_l_Lean_Diff_instReprAction___closed__0();
lean_mark_persistent(l_Lean_Diff_instReprAction___closed__0);
l_Lean_Diff_instReprAction = _init_l_Lean_Diff_instReprAction();
lean_mark_persistent(l_Lean_Diff_instReprAction);
l_Lean_Diff_instBEqAction___closed__0 = _init_l_Lean_Diff_instBEqAction___closed__0();
lean_mark_persistent(l_Lean_Diff_instBEqAction___closed__0);
l_Lean_Diff_instBEqAction = _init_l_Lean_Diff_instBEqAction();
lean_mark_persistent(l_Lean_Diff_instBEqAction);
l_Lean_Diff_instHashableAction___closed__0 = _init_l_Lean_Diff_instHashableAction___closed__0();
lean_mark_persistent(l_Lean_Diff_instHashableAction___closed__0);
l_Lean_Diff_instHashableAction = _init_l_Lean_Diff_instHashableAction();
lean_mark_persistent(l_Lean_Diff_instHashableAction);
l_Lean_Diff_instInhabitedAction_default = _init_l_Lean_Diff_instInhabitedAction_default();
l_Lean_Diff_instInhabitedAction = _init_l_Lean_Diff_instInhabitedAction();
l_Lean_Diff_instToStringAction___lam__0___closed__0 = _init_l_Lean_Diff_instToStringAction___lam__0___closed__0();
lean_mark_persistent(l_Lean_Diff_instToStringAction___lam__0___closed__0);
l_Lean_Diff_instToStringAction___lam__0___closed__1 = _init_l_Lean_Diff_instToStringAction___lam__0___closed__1();
lean_mark_persistent(l_Lean_Diff_instToStringAction___lam__0___closed__1);
l_Lean_Diff_instToStringAction___lam__0___closed__2 = _init_l_Lean_Diff_instToStringAction___lam__0___closed__2();
lean_mark_persistent(l_Lean_Diff_instToStringAction___lam__0___closed__2);
l_Lean_Diff_instToStringAction = _init_l_Lean_Diff_instToStringAction();
lean_mark_persistent(l_Lean_Diff_instToStringAction);
l_Lean_Diff_Action_linePrefix___closed__0 = _init_l_Lean_Diff_Action_linePrefix___closed__0();
lean_mark_persistent(l_Lean_Diff_Action_linePrefix___closed__0);
l_Lean_Diff_Action_linePrefix___closed__1 = _init_l_Lean_Diff_Action_linePrefix___closed__1();
lean_mark_persistent(l_Lean_Diff_Action_linePrefix___closed__1);
l_Lean_Diff_Action_linePrefix___closed__2 = _init_l_Lean_Diff_Action_linePrefix___closed__2();
lean_mark_persistent(l_Lean_Diff_Action_linePrefix___closed__2);
l_Lean_Diff_matchPrefix___redArg___closed__0 = _init_l_Lean_Diff_matchPrefix___redArg___closed__0();
lean_mark_persistent(l_Lean_Diff_matchPrefix___redArg___closed__0);
l_Lean_Diff_lcs___redArg___closed__6 = _init_l_Lean_Diff_lcs___redArg___closed__6();
lean_mark_persistent(l_Lean_Diff_lcs___redArg___closed__6);
l_Lean_Diff_lcs___redArg___closed__5 = _init_l_Lean_Diff_lcs___redArg___closed__5();
lean_mark_persistent(l_Lean_Diff_lcs___redArg___closed__5);
l_Lean_Diff_lcs___redArg___closed__4 = _init_l_Lean_Diff_lcs___redArg___closed__4();
lean_mark_persistent(l_Lean_Diff_lcs___redArg___closed__4);
l_Lean_Diff_lcs___redArg___closed__3 = _init_l_Lean_Diff_lcs___redArg___closed__3();
lean_mark_persistent(l_Lean_Diff_lcs___redArg___closed__3);
l_Lean_Diff_lcs___redArg___closed__2 = _init_l_Lean_Diff_lcs___redArg___closed__2();
lean_mark_persistent(l_Lean_Diff_lcs___redArg___closed__2);
l_Lean_Diff_lcs___redArg___closed__1 = _init_l_Lean_Diff_lcs___redArg___closed__1();
lean_mark_persistent(l_Lean_Diff_lcs___redArg___closed__1);
l_Lean_Diff_lcs___redArg___closed__0 = _init_l_Lean_Diff_lcs___redArg___closed__0();
lean_mark_persistent(l_Lean_Diff_lcs___redArg___closed__0);
l_Lean_Diff_lcs___redArg___closed__7 = _init_l_Lean_Diff_lcs___redArg___closed__7();
lean_mark_persistent(l_Lean_Diff_lcs___redArg___closed__7);
l_Lean_Diff_lcs___redArg___closed__8 = _init_l_Lean_Diff_lcs___redArg___closed__8();
lean_mark_persistent(l_Lean_Diff_lcs___redArg___closed__8);
l_Lean_Diff_lcs___redArg___closed__9 = _init_l_Lean_Diff_lcs___redArg___closed__9();
lean_mark_persistent(l_Lean_Diff_lcs___redArg___closed__9);
l_Lean_Diff_lcs___redArg___closed__10 = _init_l_Lean_Diff_lcs___redArg___closed__10();
lean_mark_persistent(l_Lean_Diff_lcs___redArg___closed__10);
l_Lean_Diff_lcs___redArg___closed__11 = _init_l_Lean_Diff_lcs___redArg___closed__11();
lean_mark_persistent(l_Lean_Diff_lcs___redArg___closed__11);
l_Lean_Diff_lcs___redArg___closed__12 = _init_l_Lean_Diff_lcs___redArg___closed__12();
lean_mark_persistent(l_Lean_Diff_lcs___redArg___closed__12);
l_Lean_Diff_lcs___redArg___closed__13 = _init_l_Lean_Diff_lcs___redArg___closed__13();
lean_mark_persistent(l_Lean_Diff_lcs___redArg___closed__13);
l_Lean_Diff_diff___redArg___closed__0 = _init_l_Lean_Diff_diff___redArg___closed__0();
lean_mark_persistent(l_Lean_Diff_diff___redArg___closed__0);
l_Lean_Diff_diff___redArg___closed__1 = _init_l_Lean_Diff_diff___redArg___closed__1();
lean_mark_persistent(l_Lean_Diff_diff___redArg___closed__1);
l_Lean_Diff_diff___redArg___closed__2 = _init_l_Lean_Diff_diff___redArg___closed__2();
lean_mark_persistent(l_Lean_Diff_diff___redArg___closed__2);
l_Lean_Diff_linesToString___redArg___closed__0 = _init_l_Lean_Diff_linesToString___redArg___closed__0();
lean_mark_persistent(l_Lean_Diff_linesToString___redArg___closed__0);
l_Lean_Diff_linesToString___redArg___lam__0___closed__0 = _init_l_Lean_Diff_linesToString___redArg___lam__0___closed__0();
lean_mark_persistent(l_Lean_Diff_linesToString___redArg___lam__0___closed__0);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
